package com.cg.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.Size;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="User登录对象", description="用户表")
public class LoginDTO {
        @ApiModelProperty(value = "账号")
        @Size(max = 20,message = "账号最长20个字符")
        private String account;

        @ApiModelProperty(value = "密码")
        @Size(max = 20,message = "密码最长20个字符")
        private String password;

    }
